import request from '@/utils/request'

export function fetchSaleBillList(params) {
  return request({
    url: '/api/bill/saleBill/getList',
    method: 'post',
    params
  })
}

export function createSaleBill(params) {
  return request({
    url: '/api/bill/saleBill/add',
    method: 'post',
    params
  })
}

export function updateSaleBill(data) {
  return request({
    url: '/api/bill/saleBill/update',
    method: 'post',
    data
  })
}

export function deleteSaleBill(params) {
  return request({
    url: '/api/bill/saleBill/delete',
    method: 'post',
    params
  })
}

export function fetchSelectItemList() {
  return request({
    url: '/api/bill/saleBill/fetchSelectItem',
    method: 'post',
  })
}
